﻿using UnityEngine;
using UnityEditor;

namespace HDJ.Framework.Core
{
    public class GameSceneHandler : AppModuleBase
    {
        public string startSceneName = "";
        public override string GetModuleVersion()
        {
            return "0.0.1";
        }

        public override string GetModuleName()
        {
            return "GameScene";
        }
        public override void OnCreate()
        {
            if (!string.IsNullOrEmpty(startSceneName))
            {
                GameSceneManager.Init();
                GameSceneManager.OpenScene(startSceneName);
            }
        }
    }
}